package cn.crce.cloud9.basic;

import java.util.Scanner;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月10日 上午 12:24
 */
public class Case43 {
    public static void main(String [] args){
        System.out.print("请输入n: ");
        //**********Found**********
        Scanner scan = new Scanner(System.in);
        String nstr = scan.next();
        //**********Found**********
        int n = Integer.parseInt(nstr);
        int b = 6;
        long sum=0,item=b;
        for(int i=1;i<=n;i++){
            sum += item;
            //**********Found**********
            item = item * 10 + b;
        }
        System.out.print(n + "项的和为 " + sum);
    }
}
